<template>
	<div>
		<web-view :src="interlinking" @message="handleGetMessage"></web-view>
	</div>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {
		ref
	} from "vue";
	const interlinking = ref()
	onLoad((option) => {
		let one
		console.log(option, 99999)
		one = decodeURIComponent(option.id)
		console.log(JSON.parse(one), 99999)
		interlinking.value = JSON.parse(one)
	})
	const handleGetMessage = (e) => {
		console.log(e, '进入handleGetMessage方法')
		if (e.detail.data[0].result == 'success' && e.detail.data[0].type == 'signdone') { //进行业务处理
			console.log('反馈', e)
			uni.switchTab({
				url: '/pages/mine/mine'
			});
		}
	}
</script>

<style scoped>

</style>